<?php
namespace Wap\Controller;
use Think\Controller;
class IndexController extends Controller {

  public function _initialize()
  {
    $actionName = strtolower(ACTION_NAME);
    $controllerName = strtolower(CONTROLLER_NAME);
    // dump(array('actionName'=>$actionName, 'controllerName'=>$controllerName));die;
    $User = session('user');
    $this->assign('user', $User);
    // dump($User);die;
  }

  public function index()
  {
    $this->display();
  }

  public function login()
  {
    layout(false);
    $this->display();
  }
}